# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=himitsu
pkgver=0.1
pkgrel=0
pkgdesc="A secret storage manager"
url="https://himitsustore.org"
arch="x86_64 aarch64" # Hare
license="GPL-3.0-only"
makedepends="hare scdoc"
subpackages="$pkgname-doc $pkgname-dev"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/himitsu/archive/$pkgver.tar.gz
"

build() {
	make -j1 PREFIX=/usr
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

dev() {
	mkdir -p "$subpkgdir"/usr/src/
	mv "$pkgdir"/usr/src/hare "$subpkgdir"/usr/src/
	rm -r "$pkgdir"/usr/src
}

sha512sums="
0e6192e6a50a80e597acc162f211eb8372470d7ebf7a9d016dc1bb7235b82d48d2148576585a663b094b86eea63e5f504a7782dd824fb21a15f4103f5fa9efb2  himitsu-0.1.tar.gz
"
